package com.github_Dididipapa.shortlink.admin.controller;

import com.github_Dididipapa.shortlink.admin.common.result.R;
import com.github_Dididipapa.shortlink.admin.feign.ProjectFeign;
import com.github_Dididipapa.shortlink.admin.remote.dto.req.RecycleBinLinkReqDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/09/18  14:51
 */
@RestController
@RequestMapping("/short-link/admin/v1")
@RequiredArgsConstructor
public class LinkController {

    private final ProjectFeign projectFeign;

    /**
     * @description: 短链接加入回收站
     * @author: dididi_papa
     * @date: 2025/9/18 下午2:55
     * @param: [recycleBinLinkReqDTO]
     * @return: com.github_Dididipapa.shortlink.admin.common.result.R<java.lang.Void>
     **/
    @DeleteMapping("/recycle-bin/save")
    public R<Void> recycleBinSave(@RequestBody RecycleBinLinkReqDTO recycleBinLinkReqDTO) {
        return projectFeign.recycleBinSave(recycleBinLinkReqDTO);
    }
}
